<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:each="u : ${page.list}">
    <span scope="row" th:text="${u.id}">id</span>
    <span th:text="${u.name}">name</span>
</div>

<div>
    <a th:href="@{listall?start=1}">[首页]</a>
    <a th:href="@{listall(start=${page.pageNum-1})}">[上一页]</a>
    <a th:href="@{listall(start=${page.pageNum+1})}">[下一页]</a>
    <a th:href="@{listall(start=${page.pages})}">[末页]</a>
当前总页数：
<a th:text="${page.pageNum}" th:href="@{/listall(start=${page.pageNum}}"></a>
/
<a th:text="${page.pages}" th:href="@{/listall(start=${page.pages})}"></a>
</div>
</body>
</html>